package com.cloudfun.campusshare.common.model.dto;

import com.cloudfun.campusshare.common.constant.AuditResult;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by Huqin on 2019/12/30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "审核信息")
public class AuditDTO {

    @ApiModelProperty("申请Id")
    @NotEmpty(message = "申请不能为空")
    private String applicationId;

    @ApiModelProperty("审核结果")
    @NotNull(message = "审核结果不能为空")
    private AuditResult auditResult;

    @ApiModelProperty("备注、结论")
    @NotEmpty(message = "结论不能为空")
    private String remark;

    @ApiModelProperty("设备数量限制")
    private Integer deviceQuantityLimit;
}
